<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <!-- 资源引用页面 -->
    <#include "/resources/share/common/_commresource.html"/> 
    <title>随意论坛</title>
</head>

<body>
  	<!--  顶部引用页面 -->
    <#include "/resources/share/common/_commtop.html"/> 
<!-- 提示框 -->
<#if errorMessage??>
<#if errorMessage=="noLogin">
<div id="ErrorMessage" class="alert alert-warning" >
	<a class="close" data-dismiss="alert" onclick="hideErrorMessage()">
		&times;
	</a>
	<strong>警告！</strong>请您先登录后再进行相关操作！
</div>
</#if>
<#if errorMessage=="userException">
<div id="ErrorMessage" class="alert alert-warning" >
	<a class="close" data-dismiss="alert" onclick="hideErrorMessage()">
		&times;
	</a>
	<strong>账号或密码错误！！</strong>
</div>
</#if>
</#if>
<script type="text/javascript">
function hideErrorMessage(){
	$("#ErrorMessage").hide();
}
</script>
<!-- 提示框 -->
<!-- start site's main content area -->
<section class="content-wrap">
<div class="container">
<div class="row">
<main class="col-md-8 main-content">

<#list sectionPage.getList() as x>          
<article id="${x.getLong('section.id')}" class="post">
    <div class="post-head">
        <h1 class="post-title"><a href="#">${x.getStr("section.name")!'木有标题！'}</a></h1>
        <div class="post-meta">
            <span class="author">作者：<a href="#">${x.getStr('user.nickName')!'木有名字'}</a></span> •
            <time class="post-date" datetime="2016年4月28日星期四上午10点14分" title="2016年4月28日星期四上午10点14分">${x.getStr("section.createTime")!'2017-01-24'}</time>
        </div>
    </div>
    <div class="featured-media">
        <a href="#"><img src="#" alt="#"></a>
    </div>
    <div class="post-content">
        <p>${x.getStr("section.remark")!'木有内容！'}</p>
    </div>
    <div class="post-permalink">
        <a href="${contextPath}/sectiondetail/${x.getLong('section.id')}" class="btn btn-default">阅读全文</a>
    </div>

    <footer class="post-footer clearfix">
        <div class="pull-left tag-list">
            <i class="fa fa-folder-open-o"></i>
            
        </div>
        <div class="pull-right share">
        </div>
    </footer>
</article>
</#list>

<!-- 分页 start -->
<!-- 不同页面传参不一致需要分开放 -->
<#include "/resources/share/common/_paginate.html"/>
<!-- 分页 end -->

                </main>
<#include "/resources/share/common/_commright.html"/>
            </div>
        </div>
    </section>
<!-- 页脚 start -->
<#include "/resources/share/common/_friendshiplink.html"/>
<!-- 页脚 end -->
</body>
</html>